package com.jnxx.basic.mapper;


import com.jnxx.basic.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {
    List<T> findAll();

    T findOne(Long id);

    void add(T t);


    void update(T t);

    void del(Long id);

    void batchDel(List<Long> ids);

    Integer findCount(BaseQuery baseQuery);

    List<T> page(BaseQuery baseQuery);
}
